package Communication;

import java.util.ArrayList;
import java.util.List;

import Data.CarDataModel;

public class SendSensorManager {
	
	static private List<CarDataModel> carsList;

	public SendSensorManager()
	{
		carsList = new ArrayList<CarDataModel>();
	}
	
	static public void setDataForSending(List<CarDataModel> cars)
	{
		try{
			carsList.clear();
			for(int i=0; i<cars.size(); i++)
			{
				carsList.add(cars.get(i));
			}
		}
		catch (Exception e) {
			// TODO: handle exception
		}
	}
	
	static public List<CarDataModel> getDataForSending()
	{
		return carsList;
	}
}
